/**
 * Created by 12062 on 2019/10/28.
 */
layui.define(['admin'], function (exports) {
  var admin = layui.admin;
  var setter = layui.setter;
  async function getmenus() {
    let result = await admin.req({
      url: setter.url + '/function/checkAuth',
      type: 'get'
    });
    if (result.code == 200) {
      return result.data;
    } else {
      return []
    }
  }
  getmenus().then(val => {
    exports('getmenus', val);
  })
});